package calao.util;

public class Bits 
{
	
	public static boolean hasBits(int value, int bits)
	{
		return (value&bits)==bits;
	}
	
	public static int clearBits(int value, int bits)
	{
		return value&(~bits);
	}

	public static int setBits(int value, int bits)
	{
		return value|bits;
	}

}
